package com.teach;

import java.io.File;
import java.nio.charset.Charset;

import cn.hutool.core.util.ZipUtil;

public class ZipTest {

	public static void main(String[] args) {
		File root = new File("d:/upload");
		File zip = new File(root,"实验用目录和文件.zip");
		System.out.println("zip:"+zip.isFile());
//		ZipUtil.unzip(zip);
		ZipUtil.unzip(zip, Charset.forName("GBK"));
		ZipUtil.unzip(zip, root, Charset.forName("GBK"));
		
		ZipUtil.zip(new File(root,"目录04"), Charset.forName("GBK"));
	}
}
